package com.triplelink.queries;

import java.io.File;
import java.io.FileNotFoundException;
import java.net.URISyntaxException;

import com.triplelink.util.IOUtil;

public class QueriesTU
{
	public static String getQuery(String arquivoDaPasta)
	{
		try
		{
			File file = new File(QueriesFiles.class.getResource(arquivoDaPasta).toURI());
			
			return IOUtil.getString(file).replace("\r\n", "\n").replace("\r", "\n");
		}
		catch (URISyntaxException e)
		{
			throw new RuntimeException(e);
		}
		catch (FileNotFoundException e) {
			
			throw new RuntimeException(e);
		}
	}
}
